﻿namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 检核产品
    /// </summary>
    public class VInboundInspectProduct : BaseVModel
    {
        private string _barCode = string.Empty;
        private string _el2Image;
        private string _ivImage;
        private string _boxImage;
        private string _qLevel;
        private string _workOrderNo;
        private string _orderNo;

        #region Public Property

        ///<Summary>
        /// 入库检ID
        ///</Summary>
        public int InspectId { get; set; }

        ///<Summary>
        /// 订单号
        ///</Summary>
        public string OrderNo
        {
            get { return string.IsNullOrWhiteSpace(_orderNo) ? string.Empty : _orderNo; }
            set { _orderNo = value; }
        }

        ///<Summary>
        /// 工单号
        ///</Summary>
        public string WorkOrderNo
        {
            get { return string.IsNullOrWhiteSpace(_workOrderNo) ? string.Empty : _workOrderNo; }
            set { _workOrderNo = value; }
        }

        ///<Summary>
        /// 组件条码
        ///</Summary>
        public string BarCode
        {
            get { return string.IsNullOrWhiteSpace(_barCode) ? string.Empty : _barCode; }
            set { _barCode = value; }
        }

        ///<Summary>
        /// 判定等级
        ///</Summary>
        public string QLevel
        {
            get { return string.IsNullOrWhiteSpace(_qLevel) ? string.Empty : _qLevel; }
            set { _qLevel = value; }
        }

        ///<Summary>
        /// 接线盒图片
        ///</Summary>
        public string BoxImage
        {
            get { return string.IsNullOrWhiteSpace(_boxImage) ? string.Empty : _boxImage; }
            set { _boxImage = value; }
        }

        ///<Summary>
        /// Iv图片
        ///</Summary>
        public string IvImage
        {
            get { return string.IsNullOrWhiteSpace(_ivImage) ? string.Empty : _ivImage; }
            set { _ivImage = value; }
        }

        ///<Summary>
        /// EL2图片
        ///</Summary>
        public string EL2Image
        {
            get { return string.IsNullOrWhiteSpace(_el2Image) ? string.Empty : _el2Image; }
            set { _el2Image = value; }
        }

        ///<Summary>
        /// 检核状态
        ///</Summary>
        public Enum.InspectProductStatus Status { get; set; }

        ///<Summary>
        /// 检核状态
        ///</Summary>
        public string CNStatus
        {
            get { return !System.Enum.IsDefined(typeof(Enum.InspectProductStatus), Status) ? string.Empty : EnumConvert.ToDesc(Status); }
        }
        #endregion
    }
}
